package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        int money=800;
        if (money>=5000){
            money*=0.5;
        }else if (money>=3000){
            money*=0.7;
        }else if (money>=1000){
            money*=0.8;
        }else {
            money*=0.9;
        }
        System.out.println("德消费了:"+money+"大洋");
    }
}
